package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.FinBond;
import com.winter.model.FinOnline;

@Repository
public interface FinBondMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FinBond record);

    int insertSelective(FinBond record);

    FinBond selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FinBond record);

    int updateByPrimaryKey(FinBond record);

    List<FinBond> queryPageList(@Param("direct") String direct, @Param("bond_type") String bond_type, @Param("deadline") String deadline, @Param("valuation") String valuation, @Param("sortName") String sortName, @Param("sort") String sort, @Param("key") String key);

    int updateCount(@Param("type") String type, @Param("countType") String countType, @Param("id") Long id);

    List<FinBond> queryUserNo(String userNo);

    FinBond selectByIdKey();
}